package com.yc.cloud.openai.portal.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class TextToSpeechChatTTSResponse {

    @JsonProperty("audio_files")
    private List<AudioFilesDTO> audioFiles;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("filename")
    private String filename;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("url")
    private String url;

    @NoArgsConstructor
    @Data
    public static class AudioFilesDTO {
        @JsonProperty("audio_duration")
        private Integer audioDuration;
        @JsonProperty("filename")
        private String filename;
        @JsonProperty("inference_time")
        private Double inferenceTime;
        @JsonProperty("url")
        private String url;
    }
}
